class Animal{
    String name;
    int age;
    public void func(){
        System.out.println(name+"在吃饭");
    }
}
public class Dog extends Animal {
    String colour;

    @Override
    public void func() {
        super.func();
        System.out.println(name+"是黄毛");
    }

    public static void main(String[] args) {

        Dog dog = new Dog();
        dog.name = "小花";
        dog.func();
    }
}